package com.agriculture.data_demo.entity;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

@Slf4j
@MappedSuperclass
@Data
public abstract class HenBaseEntity implements Serializable {
    @Id
    @Column(name = "id")
    private Integer id;

    @Column(name = "enterprise")
    @Value("温氏食品股份有限公司")
    private String enterprise;

    @Column(name = "shedName")
    private String shed;

    @Column(name = "farmName")
    private String farm;

    @Column(name = "number")
    private String number;

    @Column(name = "create_at")
    private Date createAt;
}
